package com.zhangyang.netty.consumer;

import com.zhangyang.netty.api.IRpc;
import com.zhangyang.netty.consumer.proxy.RpcProxy;

/**
 * Created by ASUS on 2017/9/24.
 */
public class RpcConsumer {

    /**
     *
     * @param args
     */
    public static void main(String args[]) {
        IRpc iRpc= RpcProxy.create(IRpc.class);
        String result = iRpc.hello("zhangyang");
        System.out.println("result:"+result);
    }
}
